﻿using HelenServer.BugEngine.Contracts;

namespace HelenServer.BugEngine.Controllers;

[ApiController]
[Route("[controller]")]
public class MigrateController : ControllerBase
{
    private readonly IMigrateService _service;

    public MigrateController(IMigrateService service)
    {
        _service = service;
    }

    [HttpGet]
    public async Task<OperationResult> MigrateAsync()
    {
        return await _service.MigrateAsync(HttpContext.RequestAborted);
    }
}